<template>
  <div class="bullect_box" v-show="showBox">
    <ul>
      <li v-for="opt in options" @click="opt.action()" :key="opt.id">{{ opt.title }}</li>
    </ul>
  </div>
</template>
<script>
export default {
  props: {
    showBox: { type: Boolean, default: false },
    options: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="less" scoped>
.bullect_box {
  position: absolute;
  margin-right: 0;
  margin-left: 0;
  border-radius: 5px;
  top: 50%;
  left: 50%;
  color: rgb(27, 27, 27);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  box-shadow: 0rem 0rem 3rem rgba(27, 27, 27, 0.5);
  width: 13rem;
  text-align: left;
  z-index: 1000;
  ul {
    padding-top: 10px;
    padding-bottom: 10px;

    cursor: pointer;
    transition: all 0.3s;
    li {
      z-index: 10;
      padding: 0.3rem;
      padding-left: 1.8rem;
      &:hover {
        background: rgba(231, 231, 231, 0.36);
      }
    }
  }
}
</style>
